package com.wjy.common.thread.param;

/**
 * @author ybxxszl
 * @desc 线程参数
 * @date 2019/5/4
 */
public class ThreadParams {

    public static final int COREPOOLSIZE = 10;
    public static final int MAXIMUMPOOLSIZE = 20;
    public static final long KEEPALIVETIME = 10;

    public static final String THREADGROUPNAME = "线程组";
    public static final String THREADNAME = "线程";

    public static long threadGroupNum = 1;
    public static long threadNum = 1;

    public static long getThreadGroupNum() {
        return threadGroupNum++;
    }

    public static long getThreadNum() {
        return threadNum++;
    }

}
